package com.elastic.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.elasticsearch.common.geo.GeoPoint;

import java.util.List;

/**
 * @Author: Chenyw
 * @Date: 2022/10/14/16:01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

public class GeoSearch {
    private String type;
    // 类型{Polygon: 多边形; Circle: 圆; bounding: 矩形}

    private List<GeoPoint> points;
    // 点集

    private String radius;
    // 半径

    private GeoPoint origin;
    // 原点

}
